/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package project.jpdftools.pagesetup;

import project.jpdfexport.constants.JPDFConst.ORIENTATION;
import project.jpdfexport.constants.JPDFConst.PAPER_SIZE;

/**
 *
 * @author Mido
 */
public class PageSetup {

    // default values
    private static int paper_size = PAPER_SIZE.A4;
    private static int orientation = ORIENTATION.Portrait;
    private static float top_margin = 25.0f;
    private static float bottom_margin = 15.0f;
    private static float left_margin = -95.0f;
    private static float right_margin = -95.0f;
    private static boolean use_default_margins = true;

    public static boolean isUse_default_margins() {
        return use_default_margins;
    }

    public static void setUse_default_margins(boolean use_default_margins) {
        PageSetup.use_default_margins = use_default_margins;
    }

    public static float getBottom_margin() {
        return bottom_margin;
    }

    public static void setBottom_margin(float bottom_margin) {
        PageSetup.bottom_margin = bottom_margin;
    }

    public static float getLeft_margin() {
        return left_margin;
    }

    public static void setLeft_margin(float left_margin) {
        PageSetup.left_margin = left_margin;
    }

    public static int getOrientation() {
        return orientation;
    }

    public static void setOrientation(int orientation) {
        PageSetup.orientation = orientation;
    }

    public static int getPaper_size() {
        return paper_size;
    }

    public static void setPaper_size(int paper_size) {
        PageSetup.paper_size = paper_size;
    }

    public static float getRight_margin() {
        return right_margin;
    }

    public static void setRight_margin(float right_margin) {
        PageSetup.right_margin = right_margin;
    }

    public static float getTop_margin() {
        return top_margin;
    }

    public static void setTop_margin(float top_margin) {
        PageSetup.top_margin = top_margin;
    }
}
